package org.tis.tools.abf.module.om.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import org.tis.tools.abf.module.om.entity.OmEmployee;
import org.tis.tools.abf.module.om.entity.enums.OmEmployeeStatus;
import org.tis.tools.abf.module.om.entity.enums.OmGender;

import java.util.List;

/**
 * omEmployee的Mapper类
 * 
 * @author Auto Generate Tools
 * @date 2018/04/23
 */
public interface OmEmployeeMapper extends BaseMapper<OmEmployee>  {

    List<OmEmployee> queryByOrgPosition(Pagination page ,@Param("guidPosition") String guidPosition);

    List<OmEmployee> queryEntryEmpByRoleId(String roleId);

    List<OmEmployee> queryEntryEmp();

    List<OmEmployee> queryByOrg(String orgId);

    List<OmEmployee> queryEmpInPosition(String orgId);

    List<OmEmployee> queryByOrgIdAndRoleId(@Param("orgId") String orgId, @Param("roleId") String roleId);

    List<OmEmployee> queryEmpByOrg(Pagination page,@Param("orgId") String orgId);

    List<OmEmployee> queryEmpByOrgFilter(Pagination page,@Param("orgId") String orgId,@Param("empCode") String empCode,@Param("empName") String empName,@Param("gender") OmGender gender,@Param("guidPosition") String guidPosition,@Param("guidEmpMajor") String guidEmpMajor,@Param("empstatus") OmEmployeeStatus empstatus);

    List<String> getEmpGuid(@Param("orgId") String orgId);
}

